package com.example.volunteeroa.repository;

import com.example.volunteeroa.entity.Organization;
import com.example.volunteeroa.entity.Users;
import com.example.volunteeroa.entity.Volunteer;
import org.apache.catalina.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.List;
import java.util.Optional;

@Repository
public interface UserRepository extends JpaRepository<Users,Integer>, JpaSpecificationExecutor<Users>{
    Optional<Users> findUsersByUserName(String name);
}
